home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: World of Education
/
PC-SiG's World of Education.iso
/
run
/
2646
/
decay.eka
< prev
next >
Wrap
Text File
|
1992-03-23
|
396b
|
12 lines
; This problem demonstrates how to solve a user-defined
; transcendental function of time.
; The problem is to calculate MassUnknown, the mass of
; 100 kg uranium 238 after one million years.
; Also calculate how long it would take to decay to 1 kg.
Mass(Years) := InitialMass * 2^(-Years/HalfLife)
InitialMass = 100
HalfLife = 10e6
MassUnknown = Mass(1e6)
1 = Mass(TimeUnknown)